#include "PacketParser.h"

#include "RakPeerInterface.h"
#include "GameMessage.h"
#include "BitStream.h"

void PacketParser::toGameMessage(GameMessage* gmO, RakNet::Packet* packetI)
{
	RakNet::RakString rs;
	RakNet::BitStream bsIn(packetI->data,packetI->length,false);
	bsIn.Read(rs);
	gmO->setMessage((unsigned char*)rs.C_String());
}